package survey.dao.impl;

import org.springframework.orm.ibatis.SqlMapClientTemplate;

import survey.dao.UserDao;
import survey.entity.User;

public class UserDaoImpl extends SqlMapClientTemplate implements UserDao {
	private SqlMapClientTemplate sqlMapClientTemplate;
	

	public SqlMapClientTemplate getSqlMapClientTemplate() {
		return sqlMapClientTemplate;
	}


	public void setSqlMapClientTemplate(SqlMapClientTemplate sqlMapClientTemplate) {
		this.sqlMapClientTemplate = sqlMapClientTemplate;
	}


	public User getUserInfo(User user) {
		
		return (User) sqlMapClientTemplate.queryForObject("getUserInfo", user);
	}

}
